module.exports = function (sequelize, DataTypes) {
    const AppletBikeScore = sequelize.define(
        'appletBikeScore',
        {
            bikeId: {
                type: DataTypes.STRING,
                allowNull: false,
                comment: '评分车id'
            },
            userId: {
                type: DataTypes.STRING,
                allowNull: false,
                comment: '评分人id'
            },
            score:{
                type: DataTypes.INTEGER,
                allowNull: false,
                comment: '分数'
            }
        },
        {
            timestamps: true, //createAt updateAt是否显示
            createdAt: 'createdTime', // 将createdAt设为自定义字段createdTime
            updatedAt: 'updatedTime'
        }
    )
    return AppletBikeScore
}

